package com.amit.Basic_Simple_Program;

import java.util.Scanner;

public class Factorial_Of_Number {

	public static void main(String[] args) {
		
		
		System.out.println("Enter a Number");
		Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		
		int fact=1;
		
		for(int i=1;i<=n;i++)
		{
			fact=fact*i;
		}
		
		System.out.println("The Factorial of Given number is "+fact);
		
	}

}
